package com.itdaan.portal.business.solr;

import java.util.Date;
/**
 * @author www.itdaan.com
 */
public class Post extends Domain{

	private Long id;         //id
	private String title;    //标题
	private String content;  //内容
	private Date postTime; //发布时间
	private String url;      //爬取的地址
	private String firstImg;//第一张图片路径
	private String createTime;//创建时间
	private String groupIds;//分类id
	private String typeId;//网站类型Id
	private Integer webId;//网站id
	private String text;//去掉标签的内容
	private Integer isHtmlCreated;//是否创建静态页面
	private Integer languageId;//语言ID
	private Integer votes;//投票次数
	private Integer views;//查看次数
	private Integer comments;//评论次数
	
	//借助的字段
	private String postTimeStr;
	
	public Post(){
		//查询列表记录返回的字段
		super.names = new String[]{"id","title","content","postTime","typeId","isHtmlCreated"};
		//高亮显示的字段
		super.hights = new String[]{"title","content"};
		//新增单条记录
		super.oneNames = new String[]{"id","title","content","postTime","typeId","groupIds","isHtmlCreated",
				"languageId","votes","views","comments"};
	}
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getPostTime() {
		return postTime;
	}

	public void setPostTime(Date postTime) {
		this.postTime = postTime;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getFirstImg() {
		return firstImg;
	}

	public void setFirstImg(String firstImg) {
		this.firstImg = firstImg;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public Integer getWebId() {
		return webId;
	}

	public void setWebId(Integer webId) {
		this.webId = webId;
	}
	
	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getPostTimeStr() {
		return postTimeStr;
	}

	public void setPostTimeStr(String postTimeStr) {
		this.postTimeStr = postTimeStr;
	}

	public String getGroupIds() {
		return groupIds;
	}

	public void setGroupIds(String groupIds) {
		this.groupIds = groupIds;
	}

	public String getTypeId() {
		return typeId;
	}
	public void setTypeId(String typeId) {
		this.typeId = typeId;
	}
	public Integer getIsHtmlCreated() {
		return isHtmlCreated;
	}
	public void setIsHtmlCreated(Integer isHtmlCreated) {
		this.isHtmlCreated = isHtmlCreated;
	}
	public Integer getLanguageId() {
		return languageId;
	}
	public void setLanguageId(Integer languageId) {
		this.languageId = languageId;
	}
	public Integer getVotes() {
		return votes;
	}
	public void setVotes(Integer votes) {
		this.votes = votes;
	}
	public Integer getViews() {
		return views;
	}
	public void setViews(Integer views) {
		this.views = views;
	}
	public Integer getComments() {
		return comments;
	}
	public void setComments(Integer comments) {
		this.comments = comments;
	}
	
}
